FROM harisekhon/ubuntu-java:latest
RUN mkdir /app \
	&& mkdir -p /usr/local/go/bin \
	&& mkdir -p /usr/local/go/path
COPY start.sh /app

RUN apt-get update && apt-get -y install git tmux cmake g++ pkg-config vim-common libwebsockets-dev libjson-c-dev libssl-dev \
	&& git clone https://github.com/q1051278389/ttyd.git \
	&& cd ttyd && mkdir build && cd build && cmake .. && make && make install
WORKDIR /data

EXPOSE 8080
EXPOSE 25565
CMD ["/app/start.sh"]